Interrupts the program execution for the amount of time that you specify in milliseconds.
プログラムの実行に割り込みをかけ、ミリ秒単位の指定時間だけ待機させます。
Wait millisec
Wait millisec
millisec: Numeric expression that contains the amount of time (in milliseconds) to wait before the program is executed.
millisec: プログラムの実行中断時間 (ミリ秒) を示す数値表式。
Sub ExampleWait
Sub ExampleWait
Dim lTick As Long
Dim lTick As Long
lTick = GetSystemTicks()
lTick = GetSystemTicks()
wait 2000
wait 2000
lTick = (GetSystemTicks() - lTick)
lTick = (GetSystemTicks() - lTick)
MsgBox "" & lTick & " Ticks" ,0,"The pause lasted"
MsgBox "" & lTick & " Ticks" ,0,"The pause lasted"
End Sub
End Sub